]> dgit.raspbian.org Git - gnome-shell.git/commit
unlockDialog: Fix scale-factor handling on multihead
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 30 Jun 2020 11:08:03 +0000 (13:08 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 30 Jun 2020 13:12:08 +0000 (13:12 +0000)
commit140ab4dec12be1adf124bc47b486919cca92e135
tree378069e23c9d68613b42268d0be43e364b1961ed
parent845122497b487860fb90f531194068876da95911
unlockDialog: Fix scale-factor handling on multihead

The blur effect needs to take the scale-factor into account, so we
listen for scale changes. However we set up the signal handler when
creating a background, which is repeated for each monitor, and every
time the monitor configuration changes. But we only disconnect the
last handler that was connected, and only when we are destroyed,
not when recreating backgrounds.

Fix this by splitting out updating the effect parameters to a separate
method that iterates over all backgrounds, so we can simply set up the
handler from the constructor.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1341
js/ui/unlockDialog.js